import axios from "@/util/axios.config";

export const getRoleList = (data) => {
  return axios({
    url: '/admin/api/role/list',
    method: 'post',
    data
  })
}

///admin/api/role/create
export const saveRole = (data) => {
  return axios({
    url: '/admin/api/role/create',
    method: 'post',
    data
  })
}

///admin/api/role/remove
export const roleDelete = (data) => {
  return axios({
    url: '/admin/api/role/remove',
    method: 'get',
    params: data
  })
}

export const current = (data) => {
  return axios({
    url: '/admin/api/auth/currentUser',
    method: 'get',
    params: data
  })
}
